<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><fmt:message key="mainMenu.company"/></title> 
<link rel="stylesheet" type="text/css" media="all"	href="<c:url value='/styles/layout.css'/>" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function doSubmit(){

//var reg=/^[A-Z]{0,2}[0-9]{3,5}$/g
//var switchFlightNumTxt=document.getElementById("switchFlightNum");
//ar tVal=switchFlightNumTxt.value;
//alert(reg.test(tVal));

  switchRecordForm.method="post";
  switchRecordForm.action="./switchRecord.html?method=saveAddForm";
  switchRecordForm.submit();
}
var msg = "<c:out value="${msg}"/>";
   if('switchSuccess' == msg){
      opener.saveRecord();
      window.close();
    }
//-->
</script>
</head>

<body leftmargin="0" topmargin="0">
<html:form action="switchRecord" method="post" styleId="switchRecordForm">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="44" class="home-content-title"><img src="images/home_ico_listTitle.gif" width="22" height="20" align="absmiddle">签转记录编辑</td>
  </tr>
       <logic:messagesPresent>
		<tr id="messagesPresentTrId" style="display:;">
			<td valign="top" class="black12" height="20">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
					<tr>
						<td class="arror_bg">
							<span class="arror_title">
						     您的操作存在如下错误：<br></span>
						     <html:errors/>
					    </td>
				    </tr>
			    </table>
			</td>
		</tr>
   </logic:messagesPresent>
  <tr>
    <td height="40" class="home-search-space">&nbsp;<fmt:message key="common.warning"/></td>
  </tr>
  <tr>
    <td valign="top"> 
      <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="home-table-topline"> </td>
        </tr>
        <tr> 
          <td class="home-table-leftline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-tool-content">
			 <html:button styleClass="home-inputBtn" property="method.saveAddForm" onclick="doSubmit()">保存
			</html:button>
			<html:reset styleClass="home-inputBtn">
            			<fmt:message key="button.reset"/>
			</html:reset>
        	<input type="button" class="home-inputBtn" onclick="window.close();" value="取消" >
		</td>
              </tr>
              <tr>
                <td align="center" valign="top">&nbsp;</td>
              </tr>
              <tr> 
                <td valign="top" class="home-edittable-space"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
			              <html:hidden property="id"/>
			              <html:hidden property="flightInfoId"/>
			              <html:hidden property="pi_id"/>
			              <html:hidden property="chineseName"/>
			              <html:hidden property="etNumber"/>
			              <html:hidden property="cabinClass"/>
			             

                           <tr>
								<td width="16%" class="home-subtable-view-tdstyle-right">旅客姓名：</td>
								<td width="20%" class="home-subtable-view-tdstyle-left"><c:out value="${switchRecordForm.chineseName}"/>
								</td>
								<td width="18%" class="home-subtable-view-tdstyle-right">票号：</td>
								<td width="20%" class="home-subtable-view-tdstyle-left"><c:out value="${switchRecordForm.etNumber}"/></td>
							 </tr>
		 					  <tr>
                    				<td class="home-subtable-view-tdstyle-right">票价折扣：</td>
                    				<td class="home-subtable-view-tdstyle-left">&nbsp;</td>
                    				<td class="home-subtable-view-tdstyle-right">舱位：</td>
                    				<td class="home-subtable-view-tdstyle-left"><c:out value="${switchRecordForm.cabinClass}"/></td>
                    				 
                    				
		 					  </tr>
							  <tr>
								 <td class="home-subtable-view-tdstyle-right"><font color="red">*</font>处理：</td>
								 <td class="home-subtable-view-tdstyle-left">
     	                              <html:select name="switchRecordForm" property="switchType" size="1" styleId="vipTypeId" style="width:60px" >
			  	 					    <html:option  value="1">退票</html:option> 
			  	 					    <html:option  value="2">变更</html:option> 
			  	 					 	<html:option  value="3">签转</html:option> 
			  						</html:select></td>	
								<td class="home-subtable-view-tdstyle-right"><font color="red">*</font>产生费用：</td>
								<td class="home-subtable-view-tdstyle-left"><html:text property="cost" styleId="cost" styleClass="home-table-inputbox" style="width:80"/>&nbsp;元</td>
							  </tr>
							  <tr>
								<td class="home-subtable-view-tdstyle-right">签转航班号：</td>
								<td class="home-subtable-view-tdstyle-left"><html:text property="switchFlightNum" styleId="switchFlightNum" styleClass="home-table-inputbox" maxlength="7"/></td>
								<td class="home-subtable-view-tdstyle-right">签转后票号：</td>
								<td class="home-subtable-view-tdstyle-left"><html:text property="switchEtNum" styleId="switchEtNum" styleClass="home-table-inputbox" /></td>
							  </tr>
							  <tr>
								<td class="home-subtable-view-tdstyle-right">备注：</td>
								<td colspan="4" class="home-subtable-view-tdstyle-left"><textarea name="memo" class="home-table-inputbox" cols="50" rows="3"><c:out value="${switchRecordForm.memo}"/></textarea></td>
							  </tr>
                        </table> </td>
                       
                    </tr>
                  </table> 
                </td>
              </tr>
            </table>
		  </td>
        </tr>
        <tr> 
          <td height="12">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-bottom-left">&nbsp;</td>
                <td class="home-table-bottom-bg">&nbsp;</td>
                <td class="home-table-bottom-right">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
	  </td>
  </tr>
  <tr>
    <td height="10">&nbsp;</td>
  </tr>
</table>
</html:form>
</body>
</html>

<%@ include file="/common/script.jsp"%>

